import request from '@/router/axios';

// 列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-portal/quotationinfo/settleList',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}
// 确认对账单、驳回、上传发票
export const confirmSheet = (data) => {
  return request({
    url: '/api/blade-portal/quotationinfo/updateSettlementStatus',
    method: 'post',
    data
  })
}

// 发票确认
export const confirmInvoice = (id) => {
  return request({
    url: '/api/blade-portal/quotationinfo/confirmInvoice',
    method: 'post',
    params: {
      id
    }
  })
}
// 上传确认文件
export const saveConfirmFiles = (data) => {
  return request({
    url: '/api/blade-purchase/settlementinfo/saveQualification',
    method: 'post',
    data
  })
}